﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Apex.Common;
using Apex.Common.Base.ViewModels;
using Apex.Script.Models;

namespace Apex.Script.ViewModels
{
    public class LocationViewModel : NamedTrackableObjectViewModel<Location>
    {
        public LatLon Position
        {
            get { return Model.Position; }
            set { Model.Position = value; OnPropertyChanged("Position"); }
        }

        public WeatherType Weather
        {
            get { return Model.Weather; }
            set { Model.Weather = value; OnPropertyChanged("Weather"); }
        }

        public TimeOfDay TimeOfDay
        {
            get { return Model.TimeOfDay; }
            set { Model.TimeOfDay = value; OnPropertyChanged("TimeOfDay"); }
        }

        public TimeSpan ActualDate
        {
            get { return Model.ActualDate; }
            set { Model.ActualDate = value; OnPropertyChanged("ActualDate"); }
        }

        public LocationViewModel()
        {

        }

        public LocationViewModel(Location model)
            : base(model)
        {

        }
    }
}
